package com.unicom.aop.annotation;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author liry
 * @version 1.0
 * @date Created on 2021/12/14 15:44
 * Description:
 */
public class AspectMain {

	public static void main(String[] args) {
//		ApplicationContext applicationContext = new AnnotationConfigApplicationContext(Config.class);
		ApplicationContext applicationContext = new ClassPathXmlApplicationContext("beans-aop.xml");

		TestBean testBean = (TestBean) applicationContext.getBean("testBean");
		testBean.test("testData");
	}
}
